//              this is kpDemo's main
//              author: Michael Lee
//              email: michael.20@qq.com



#include <QtGui/QApplication>
#include <QTextCodec>
#include "kpdemo.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
#ifndef WIN32 //linux show Chinese
    QTextCodec *codec = QTextCodec::codecForName("UTF-8");
#else//windows show Chinese
    QTextCodec *codec = QTextCodec::codecForName("GB2312");
#endif
    QTextCodec::setCodecForLocale(codec);
    QTextCodec::setCodecForCStrings(codec);
    QTextCodec::setCodecForTr(codec);
    kpDemo w;
    w.show();
    return a.exec();
}
